<!-- left start -->
		<div class="con_left">

			<div class="top_bar">
				<span class="left">赞友为您分享...</span>
				<div class="right">
					<a href="/rss/view" class="rss">RSS
				<img src="/images/rss.png"/></a>
				</div>
			</div>

			<div class="news_main clearfix list-news-item">
				<ul>
					<!--新闻标题-->
					<li class="news_title">
						<a href="/wai/<?=$model->news_id?>/<?=$model->url_host?>/<?=CHtml::encode($model->site_title)?>"><?=$model->site_title?></a></p>
					</li>

					<!--新闻内容-->
					<li>
						<div class='news_con'>
							<div class='news_pic'>
								<img src='<?=NC::defaultPic($model->news_thumb)?>' />
							</div>

							<div class='news_info'>
							
								<ul>
									<!--显示用户操作信息-->
									<li class='news_users_info'>
										<ul>

											<!--来源-->
											<li>
												<img src='/images/tips_web.png' />
												<a href="<?=$model->link_url?>"><?=$model->url_host?></a>
											</li>
											<!--分享时间-->
											<li>
												<img src='/images/2.png' />
												<a href="/upper/<?=$model->user_id?>"><?=$model->user_name?></a>
												<span>分享于<?=NC::to_time($model->post_time)?></span>
											</li>
										</ul>
									</li>

									<!--新闻内容-->
									<li>
										<p>ss<?=CHtml::encode($model->news_desc)?></p>
									</li>

									<!--标签-->
									<li class='news_info_oper'>
										<ul>
											<li>
												<?$this->widget('Digg',array('news_id'=>$model->news_id,'digg_num'=>$model->digg_num,'action'=>$model->actions))?>
												
											</li>
											<li>
												<?$this->widget('Trash',array('news_id'=>$model->news_id,'trash_num'=>$model->trash_num,'action'=>$model->actions))?>
											</li>
										</ul>
									</li>
								</ul>
							</div>

						</div>
					</li>
				</ul>
			</div>
			<!--用户标签和分享的人-->
			<div class='news_tag news_other'>
				<div class='ra_title'>
					<img src='/images/4.png' />
					<span>被描述的标签...</span>
				</div>

				<ul>
					<?foreach($model->tagLinks as $key => $value):?>
					<li>
						<?=$value['tag_name']?>(<?=$value['use_num']?>)
					</li>
					<?endforeach;?>
					<?if(!Yii::app()->user->isGuest):?>
						<li>
							<img src="/images/addtag.gif" class="tips" data="我也想给该新闻贴标签"/>
							<a class="tag" style="margin:0;" href="#tag_form" id="tag_a">增加标签</a>
						</li>
					<?endif?>
				</ul>
				<div style="display:none;" >
					<form action="/news/tag/id/<?=$model->news_id?>" method="post" style="text-align:center;margin:5px;" id="tag_form">
						<ul style="text-align:left;">
							<li>
								<span>标签(多个标签，请用空格分隔):</span>
							</li>
							<li>
								<input type="text" value="" name="news_tag" class="jsin" id="taginput" style="width:300px;"/>
							</li>
							<li class="clearfix">
								<dl style="width:500px;">
									<dt style="float:left;width:65px;color:#666;">我的标签：</dt>
									<dd style="float:left;line-height:23px;margin:0 0 3px;width:400px;"><?=$myTag?></dd>
								</dl>
							</li>
							<li>
								<input type="submit" value="增加" onclick="" />
							</li>
						</ul>
					</form>
				</div>
			</div>
			<div class='news_share news_other'>
				<div class='ra_title'>
					<img src='/images/5.png' />
					<span>同样也喜欢这个分享的赞友...</span>
				</div>

				<ul>
					<?foreach($userLikes as $val):?>
					<li>
						<a href="/upper/<?=$val->user_id?>" title="<?=CHtml::encode($val->user_name)?>"><img width=30 height=30 src='<?=NC::getUserIcon($val->user_id);?>'></a>
					</li>
					<?endforeach?>

				</ul>
			</div>
			<div class="top_bar" id="cm<?=$model->news_id?>">
				<span class="left">赞友评论</span>
			</div>
			<div class='news_comments'>
				<?php if(Yii::app()->user->hasFlash('submitNewsComment')): ?>
					<div class="flash-success">
						<?php echo Yii::app()->user->getFlash('submitNewsComment'); ?>
					</div>
				<?php else: ?>
					<?php $this->renderPartial('/comment/_form',array(
						'model'=>$comment,
					)); ?>
				<?php endif; ?>
					

				
				<?php $this->widget('zii.widgets.CListView',array(
						'dataProvider'=>$dataProvider,
						'itemView'=>'_comments',
						'viewData'=>array('comments'=>$model->comments),
						'emptyText'=>'还没有人进行评论.',
					));

				?>

			</div>

			<!--更多
			<div class="more_bar">
				<span class="more">加载更多</span>
			</div>
			-->
		</div>
		<!-- left end -->
		<div class="con_right">
			<?php $this->widget('Search');?>
			<p class="right_p">
				他们在为您分享...
			</p>
			<div class="right_share clearfix">
				<ul>
					<li>
						<div style='float:left;'>
							<a href="/upper/<?=$user->user_id?>"><img src="<?=NC::getUserIcon($user->user_id);?>" height="40px" width="40px"/></a>
						</div>
						<div class="right">
							<a href="/upper/<?=$user->user_id?>" class="name"><?=$user->user_name?></a>
							<ul>
								<li>
									<img src='/images/right_share.jpg' />
									<span>分享(<?=$user->share_num?>) </span>
								</li>
								<li>
									<img class='icon_fensi' src='/images/right_fensi.jpg'/>
									<span>下游(<?=$user->fans_num?>)</span>
								</li>
								<br/>
								<li>
									<img src='/images/right_comm.png' />
									<span>评论(<?=$user->comment_num?>) </span>
								</li>
								<li>
									<img  class='icon_fa' src='/images/right_fa.png'/>
									<span>发布(<?=$user->issue_num?>) </span>
								</li>
							</ul>
						</div>
					</li>
				</ul>
			</div>
			<!--兴趣-->
			<div class='right_interest'>
				<p>
					<img src='/images/xinqu.png'/>
					<span>兴趣</span>
				</p>

				<ul>
				<?
					if(!empty($user->favorLinks)){
						foreach($user->favorLinks as $favor){
							echo "<li><img src='/images/3.png' /><span>$favor</span></li>";
						}
					}
				?>
				</ul>
			</div>
			<?if($fans !== null):?>
			<p class="right_p clearfix">
				<?=$user->user_name?>的下游...
			</p>

			<ul class="right_fensi_ul clearfix">
			<?
				$this->widget('zii.widgets.CListView',array(
					'dataProvider'=>$fans,
					'itemView'=>'_viewfans',
					'emptyText'=>$user->user_name."还没有下游！",
				));
			?>
			</ul>
			<?endif?>
		</div>
